package com.lanou3g.demo.base.service;

import com.lanou3g.demo.entity.AdminInfo;
import com.lanou3g.demo.entity.ExAdminInfo;
import com.lanou3g.demo.mapper.UserInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService implements IUserService {
    @Autowired
    private UserInfoMapper user;

    @Override
    public List<ExAdminInfo> findInfoByCode(String code) {
        return user.findInfoByCode(code);
    }

    @Override
    public int modifyInfoByCode(AdminInfo admin) {
        return user.modifyInfoByCode(admin);
    }

    @Override
    public int modifyPwByCode(AdminInfo admin){return user.modifyPwByCode(admin);}
}
